//
//  ParametersVCA.m
//  CocoaSynth
//
//  Created by Thomas Dupont on 22/02/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import "ParametersVCA.h"

#import "ModuleVCAViewController.h"
#import "PortInProtocol.h"
#import "ModuleVCAProtocol.h"

@implementation ParametersVCA

@synthesize module;
@synthesize gainSlider;
@synthesize gainText;

- (void)load
{
	[(id<ModuleVCAProtocol>)[module model] setInitialGain:[gainSlider floatValue]];
}

- (IBAction)frequencyChange:(id)sender
{
	[gainText setTitleWithMnemonic:[NSString stringWithFormat:@"%i",[gainSlider intValue]]];
	[(id<ModuleVCAProtocol>)[module model] setInitialGain:[gainSlider floatValue]];
}

@end
